package com.qianduo.front.exception;
import com.qianduo.front.util.Constants;

@SuppressWarnings("serial")
public class ServiceException extends Exception {
	public ServiceException() {
		Constants.log.error(getMessage());
	}

	public ServiceException(String message) {
		super(message);
		Constants.log.error(message);
	}

	public ServiceException(Throwable cause) {
		super(cause);
		Constants.log.error(cause.getMessage());
	}

	public ServiceException(String message, Throwable cause) {
		super(message, cause);
		Constants.log.error(message, cause);
	}
}
